import { createRouter, createWebHashHistory, RouteRecordRaw } from "vue-router";
import MdComp from "../markdown/example.md";
import Home from "../views/home.vue";
const router = createRouter({
  history: createWebHashHistory(),
  routes: [
    {
      path: "/",
      redirect: "/home",
      name: "Root",
    },
    {
      path: "/home",
      name: "Home",
      component: Home,
    },
    {
      path: "/components",
      component: MdComp,
    },
  ],
});

export default router;
